<script>
export default {
  name: "Notification",
  methods: {
    handleClickExit() {
      console.log('click top right corner exit.')
    }
  }
}
</script>

<template>
<div class="notification-view flex-center">
  <div class="notification-mask"> <van-overlay :show="true" /></div>
  <div class="congratulation-container">
    <div class="close" @click="handleClickExit">
      <i class="el-icon-close flex-center"></i>
    </div>
    <div class="title-text">
      Congratulations!
    </div>
    <div class="congratulation-icon"></div>
    <div class="desc">
      <div class="desc-title">Your account is now ready to use.</div>
      <div class="desc-message">You will be redirected to the Home page shortly.</div>
    </div>
    <div class="loading">
      <i class="el-icon-loading flex-center"></i>
    </div>
  </div>
</div>
</template>

<style scoped lang="scss">
.notification-view {
  width: 100%;
  height: 100vh;
  background-image: url('../assets/image/congratualte/avatar.png');
  background-position: center center;
  position: relative;
  overflow: hidden;

  .notification-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    //background: var(--mask-bg-color);
    //backdrop-filter: blur(8px);
    background-image: url('../assets/image/congratualte/overlay.png');
    background-position: 100% 100%;
    z-index: 0;
  }
  .congratulation-container {
    position: absolute;
    width: 80vw;
    border-radius: 2vw;
    background: var(--im-color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 23.82px 23.82px 23.82px 23.82px;

    .close {
      position: absolute;
      top: 10px;
      right: 8px;
      .el-icon-close {
        width: 100%;
        height: 100%;
        font-size: 20px;
      }
    }
    .title-text {
      font-size: 21.83px;
      font-weight: 400;
      letter-spacing: 0;
      line-height: 25.58px;
      color: var(--notification-title-color);
      text-align: center;
      vertical-align: top;
    }
    .congratulation-icon {
      margin-top: 24px;
      width: 138px;
      height: 138px;
      background-image: url('../../src/assets/image/congratualte/congralutation-icon.png');
      background-size: 100% 100%;
    }
    .desc {
      margin: 24px 0;
      font-size: 16px;
      line-height: 18px;
      text-align: center;
      .desc-title {
        color: var(--notification-desc-title-color);
      }
      .desc-message {
        margin-top: 8px;
        color: var(--notification-desc-color);
      }
    }

    .loading {
      width: 56px;
      height: 56px;
      color: var(--loading-color);
      .el-icon-loading {
        font-size: 50px;
      }
    }
  }
}
</style>